home *** CD-ROM | disk | FTP | other *** search
- Page 60,132
- TITLE BOOT1 Quick-boot for IBM-PC with hard disk
- ;
- ;*************************************************************************
- ;* QUICKBOOT - .COM Format coding *
- ;* --------- *
- ;* *
- ;* This program causes a warm boot on an IBM-PC. It's primary *
- ;* advantage is that it bypasses the routines that reset the *
- ;* hard disk controller, thereby saving approximately 15-30 *
- ;* seconds. This comes in handy when experimenting with *
- ;* various AUTOEXEC or CONFIG.SYS changes. *
- ;* *
- ;* In addition, comparing this file with BOOT2.ASM shows the *
- ;* novice ASM programmer how to generate code in both the EXE *
- ;* and COM file formats. After assembling and linking this *
- ;* version, use the command EXE2BIN BOOT1.EXE BOOT1.COM to generate *
- ;* the executable .COM file. Notice how much smaller the .COM *
- ;* version is compared to the .EXE version (97 vs. 686 bytes)! *
- ;* *
- ;*************************************************************************
- ;
- CODESEG SEGMENT
- Assume CS:CODESEG, DS:CODESEG, ES:CODESEG, SS:CODESEG
- Org 100H ;All COM format progs must be org'ed 100H
- Entry: Jmp BEGIN ;Jump over data declarations
- ;--------------------------------------------------------------------------
- ;********* Data Declarations Area **********
- MESSAGE1 db 'Q U I C K B O O T',0dH,0aH,'$'
- MESSAGE2 db 'by Brad Stephenson',0dH,0aH,'$'
- ;--------------------------------------------------------------------------
- BEGIN: mov ah,08 ;Set up to
- mov bh,00 ; ask BIOS what colors
- int 10H ; are currently set
- mov bh,ah ;Set up to
- mov ax,0600H ; clear screen
- mov cx,0000 ; to pre-existing
- mov dx,184fH ; colors.
- int 10H ;Call BIOS scroll function
- mov ah,02 ;Set up to position
- mov bh,00 ; cursor
- mov dx,0520H ; at row 5, column 32
- int 10H ;Call BIOS cursor pos. func.
- mov dx,Offset MESSAGE1 ;Print program name
- mov ah,9 ; at cursor
- int 21H ;Call DOS string disp. func.
- mov ah,02 ;Set up to position
- mov bh,00 ; cursor
- mov dx,0e1fH ; at row 14, column 31
- int 10H ;Call BIOS cursor pos. func.
- mov dx,Offset MESSAGE2 ;Print programmer's name
- mov ah,9 ; at cursor position
- int 21H ;Call DOS string disp. func.
- int 19H ;Reboot
- CODESEG EndS
- End ENTRY
-